export const chartOption = {
  title: {
    text: "价格曲线",
    x: "center",
    y: "top",
    textStyle: {
      color: "#fff",
      fontSize: 20
    },
    top: "10"
  },
  grid: {
    top: '18%',
    right: '2%',
    left: '6%',
    bottom: '10%',
  },
  legend: {
    data: [
      "日前全省平均节点电价"
    ],
    textStyle: {
      color: '#fff'
    },
    top: '60',
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  xAxis: {
    type: "category",
    boundaryGap: false,
    data: ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"],
    axisLine: {
      lineStyle: {
        color: "#fff"
      }
    },
    splitLine: {
      show: true,
      lineStyle: {
        color: "rgba(255,255,255,0.1)",
        type: "dashed"
      }
    }
  },
  yAxis: {
    type: 'value',
    name: "电价（元/kWh）",
    axisLine: {
      lineStyle: {
        color: "#fff"
      }
    },
    splitLine: {
      lineStyle: {
        color: "rgba(255,255,255,0.1)"
      }
    }
  },
  series: [
    {
      name: "日前全省平均节点电价",
      type: "line",
      smooth: true,
      symbol: "circle",
      itemStyle: {
        color: '#ff9f43',
        lineStyle: {
          color: '#ff9f43'
        }
      },

      data: []
    }
  ]
};